package com.imti.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.imti.dao.DoctorDao;
import com.imti.entity.Doctor;
import com.imti.entity.dto.DoctorDto;
import com.imti.service.DoctorService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * (Doctor)表服务实现类
 *
 * @author makejava
 * @since 2023-01-30 15:52:34
 */
@Service("doctorService")
public class DoctorServiceImpl extends ServiceImpl<DoctorDao, Doctor> implements DoctorService {

    @Resource
    private DoctorDao doctorDao;

    @Override
    public List<Doctor> getDoc(Page page) {
        return doctorDao.getDoc(page);
    }

/*    @Override
    public List<Doctor> getDocBySQLLimit(Integer pageNum, Integer pageSize) {
        return doctorDao.getDocBySQLLimit(pageNum, pageSize);
    }*/

    @Override
    public List<DoctorDto> findDoctorByDeskIdAndName(String searchDocName, Integer[] array) {

        return doctorDao.findDoctorByDeskIdAndName(searchDocName, array);
    }

    @Override
    public List<DoctorDto> findDoctorById(Integer docId){
        return doctorDao.findDoctorById(docId);
    }
}
